﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaperDetailFixedChosenList.aspx.cs" Inherits="ExaminationSys.View.Paper.PaperDetailFixedChosenList" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript" language="javascript">
         var template = '<span style="color:{0};">{1}</span>';
         var LockRaw = function (value) {
             if (value == true)
                 return Ext.String.format(template, "red", "是");
             else {
                 return Ext.String.format(template, "green", "否");
             }
         };
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <ext:ResourceManager ID="ResourceManager1" runat="server"  DirectMethodNamespace="X" />
    <div>
    
            
              <ext:Store ID="StorePaperSubjectQuestion"
            runat="server" PageSize="20"
            ShowWarningOnFailure="true"
            AutoLoad="true"
            OnReadData="StorePaperSubjectQuestion_RefreshData">
            <Proxy>
                <ext:PageProxy>                    
                    <Listeners>
                        <Exception Handler="Ext.MessageBox.alert('Load failed', response.statusText);" />
                    </Listeners>
                </ext:PageProxy>
            </Proxy>
            <Model>
                <ext:Model ID="Model" runat="server" IDProperty="ID">
                    <Fields>
                        <ext:ModelField Name="ID"/>
                        <ext:ModelField Name="SerialNo" />
                        <ext:ModelField Name="Title" />
                        <ext:ModelField Name="Content" />
                        <ext:ModelField Name="Stage" />
                        <ext:ModelField Name="Challenge" />
                        <ext:ModelField Name="Knowledge" />
                        <ext:ModelField Name="KeyWord" />
                        <ext:ModelField Name="Point" />
                        <ext:ModelField Name="OrderIndex" />
                    </Fields>
                </ext:Model>
            </Model>
            <AutoLoadParams>
                <ext:Parameter Name="start" Value="0" Mode="Raw" />
                <ext:Parameter Name="limit" Value="20" Mode="Raw" />
            </AutoLoadParams>            
            <Sorters>
                <ext:DataSorter Property="OpeatorTime" Direction="DESC" />
            </Sorters>
            <Listeners>
                <Exception Handler="Ext.MessageBox.alert('Load failed', response.statusText);"></Exception>
            </Listeners>
        </ext:Store>
              <ext:ViewPort ID="ViewPort1"  runat="server" Layout="BorderLayout">
            <Items>
                <ext:GridPanel 
                    ID="GridPanelPaperSubjectQuestion" 
                    runat="server" Region="Center"
                    StoreID="StorePaperSubjectQuestion"
                    TrackMouseOver="true"
                    AutoExpandColumn="Title"
                    >
                 <TopBar>
                        
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                 <ext:Label runat="server" ID="lblTitle" Text="" Width="130"></ext:Label>
                                 <ext:ToolbarSeparator runat="server" ></ext:ToolbarSeparator>
                                 <ext:Button runat="server" ID="Button1" Text="返回" Icon="ApplicationOsxHome" >  
                                    <DirectEvents>
                                        <Click OnEvent="BtnGoManage_Click"></Click>
                                    </DirectEvents>                                         
                                </ext:Button>   
                                 <ext:Button runat="server" ID="Button3" Text="已选试题" Icon="ApplicationOsxGo" >                                      
                                </ext:Button>   
                                 <ext:Button runat="server" ID="Button2" Text="选题" Icon="ApplicationOsxGo" >                           
                                    <DirectEvents>
                                        <Click OnEvent="BtnGo_Click"></Click>
                                    </DirectEvents>                        
                                </ext:Button>   
                                 <ext:ToolbarSeparator ID="ToolbarSeparator3" runat="server" ></ext:ToolbarSeparator>
                                 <ext:Button runat="server" ID="Button6" Text="批量移除" Icon="ApplicationOsxGo" >                           
                                    <DirectEvents>
                                        <Click OnEvent="BatchDelete_Click"></Click>
                                    </DirectEvents>                        
                                </ext:Button>   
                                <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server" ></ext:ToolbarSeparator>
                                <ext:ToolbarSpacer runat="server" ID="toobarSapcer1" Width="300"></ext:ToolbarSpacer>
                                <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server" ></ext:ToolbarSeparator>
                                   <ext:Label runat="server" ID="Label1" Text="移动行数[负数为前移]" Width="130"></ext:Label>
                                <ext:NumberField ID="Step" AllowBlank="false" runat="server"   FieldLabel="" Width="80" />
                                <ext:Button runat="server" ID="BtnMoveTo" Text="移动" Icon="BellGo" >                           
                                    <DirectEvents>
                                        <Click OnEvent="BtnMoveTo_Click"></Click>
                                    </DirectEvents>                        
                                </ext:Button>    
                                  <ext:ToolbarSeparator ID="ToolbarSeparator4" runat="server" ></ext:ToolbarSeparator>          
                                 <ext:Button runat="server" ID="BtnRefresh" Text="刷新" Icon="ArrowRefresh" >                           
                                    <Listeners>
                                        <Click Handler="#{StoreDBSubject}.reload();"  />
                                    </Listeners>                          
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <SelectionModel> 
                      <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1"  runat="server" Mode="Multi" CheckOnly="true" />
                    </SelectionModel>
                    <ColumnModel ID="ColumnModel1" runat="server">
			            <Columns>
                            <ext:Column ID="Column1" runat="server" Header="ID" DataIndex="ID" Width="150" Hidden="true" />
                            <ext:Column ID="Column3"  runat="server" Header="编号" DataIndex="SerialNo" Width="60" />
                            <ext:Column ID="Column5"  runat="server" Header="标题" DataIndex="Title"   Width="230" />
                            <ext:Column ID="Column11"  runat="server" Header="阶段" DataIndex="Stage"   Width="120" />
                            <ext:Column ID="Column13"  runat="server" Header="难度" DataIndex="Challenge"  Width="60" />
                            <ext:Column ID="Column15"  runat="server" Header="知识点" DataIndex="Knowledge"  Width="160" />
                            <ext:Column ID="Column17"  runat="server" Header="关键字" DataIndex="KeyWord"  Width="160" />
                            <ext:Column ID="Column19"  runat="server" Header="分值" DataIndex="Point"  Width="60" /> 
                             <ext:Column ID="Column2"  runat="server" Header="排序" DataIndex="OrderIndex"  Width="60" /> 
			            </Columns>                
                    </ColumnModel>
                    <Listeners>
                    </Listeners> 
                    <View>
                        <ext:GridView ID="GridView1"  runat="server" />
                    </View>    
                    <BottomBar>
                        <ext:PagingToolbar ID="PagingToolbar1" 
                            runat="server"                      
                            DisplayInfo="true" 
                            DisplayMsg="当前显示记录: {0} - {1}  共计: {2}" 
                            EmptyMsg="没有记录可以显示"                     
                            />
                    </BottomBar>
                </ext:GridPanel>
 
            </Items>
        </ext:ViewPort>  
        
        
        </div>
 
    </form>
</body>
</html>
